<template>
    <!-- 加载动画 -->
    <div class="loader">
        <div class="spinner" v-for="item in 3">
            <div class="dot1"></div>
            <div class="dot2"></div>
        </div>
    </div>
</template>

<script setup>

</script>

<style lang="less" scoped>
//加载动画
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2002;
    .spinner {
        width: 20px;
        position: relative;
        margin-left: 10px;
    }
    
    .dot1,
    .dot2 {
        width: 20px;
        height: 20px;
        background-color: #3498db;
        border-radius: 50%;
        position: absolute;
        animation: bounce 2s infinite ease-in-out;
    }
    
    .dot2 {
        animation-delay: -1s;
    }
    
    @keyframes bounce {
    
        0%,
        100% {
            transform: scale(0);
        }
    
        50% {
            transform: scale(1);
        }
    }
}
</style>